<?php
/**
 * 测试 spl_autoload  
 *
 * @filesource testSpl.php
 * @package 
 * @subpackage 
 * @version $id: 0.1, utf8, $
 * @author LD King <kldscs[at]gmail.com>
 * @copyright Copyleft (D.) 2007 - 2009 MiFunny China Inc.
 * @link http://mifunny.info/
 * @example 
 *   
 */
//require_once '';
spl_autoload_register(null, false);
spl_autoload_extensions('.php, .class.php');
function classLoader($class){
    $filename = $class.'.class.php';
    if( !file_exists($filename) ){
        die("FUCK");
    }else{
        require_once $filename;
    }
}
spl_autoload_register('classLoader');

class blog implements iController{
    public function index(){
        echo "Welcome to my blog!";
    }
}

$blog = new blog();
$blog->index();


?>

